<template>
    <UxDialog :visible="!!value" @close="onClose() ">
        <BrandingConnectProduct filter="linked" v-if="value" :type="type" :detail="value" @update="onUpdate()" />
    </UxDialog>
</template>
<script>
export default {
    name: "DisconnectProduct",
    props: {
        value: { type: Object, default: () => { return null } },
        type: { type: String, default: '' },
    },
    data () {
        return {
            change: false,
        };
    },

    methods: {
        onUpdate () {
            this.change = true;
        },
        onClose () {
            this.change && this.$emit('update')
            this.$emit('input', null)
            this.status = '';
        },
    },
    created () {
    }
};
</script>

<style lang="scss" scoped>
</style>

